package com.glorysoft.tonglingxjpda.base

import androidx.databinding.BaseObservable
import androidx.databinding.Bindable
import com.glorysoft.tonglingxjpda. BR

/**
 * FileName: Constant
 * Author: XJH
 * Date: 2021/5/13 11:37
 * Description:
 * History:
 */
class Constant {

    companion object : BaseObservable() {
        @get:Bindable
//        var REQUEST_URL_DEBUG: String = "http://10.14.12.122:8180" //铜陵接口地址
//        var REQUEST_URL_DEBUG: String = "http://10.14.12.130:8180" // 广州接口地址
//        var REQUEST_URL_DEBUG: String = "http://10.14.12.136:8180" // 天津接口地址
        var REQUEST_URL_DEBUG: String = "http://10.14.12.147:8080" // 大连接口地址
//        var REQUEST_URL_DEBUG: String = "http://10.14.12.128:8180" //接口地址
            set(value) {
                field = value
                // 只更新本字段
                notifyPropertyChanged(BR.rEQUEST_URL_DEBUG)

                // 更新所有字段
//                notifyChange()
            }

        @get:Bindable
//        var FILE_URL: String = "http://10.14.12.121:8033/Version.txt" //APK下载地址
//        var FILE_URL: String = "http://10.14.12.132:8033/Version.txt" //广州APK下载地址
//        var FILE_URL: String = "http://10.14.12.138:8033/Version.txt" //天津APK下载地址
        var FILE_URL: String = "http://10.14.12.147:8033/Version.txt" //大连APK下载地址
            set(value) {
                field = value
                notifyPropertyChanged(BR.fILE_URL)
            }

        var CURRENT_USER: String = ""
        var CURRENT_ORGRRN: String = "378341"
        var CURRENT_ORGNAME: String = "Other"

        var VRESION: String = "1.0"
    }
}